package xin.nick.persistence.core;

/**
 * @author Nick
 * @date 2021/5/6
 * @description SQL执行方式
 */
public enum ExecutorTypeEnum {
    SELECT("select", 1),
    UPDATE("update", 2),
    INSERT("insert", 3),
    DELETE("delete", 4)
    ;
    private String keyName;
    private int index;

    ExecutorTypeEnum(String keyName, int index) {
        this.keyName = keyName;
        this.index = index;
    }

    public String getKeyName() {
        return keyName;
    }

    public void setKeyName(String keyName) {
        this.keyName = keyName;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}
